package com.hjm.friend.domain.user;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hjm.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
@TableName("tb_user_exam")
public class UserExam extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "USER_EXAM_ID", type = IdType.ASSIGN_ID)
    private Long userExamId;                 // "用户竞赛关系id"

    @JsonSerialize(using = ToStringSerializer.class)
    private Long examId;                    // "竞赛id"

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;                    // "用户id"

    private Integer score;                  // "得分"

    private Integer examRank;               // "竞赛排名"
}
